package com.acargil.sudoku.view.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.acargil.sudoku.view.util.MessageFactory;

public class AboutListener implements ActionListener {

	private static ActionListener instance = null;
	
	public static ActionListener getInstance() {
		if (instance == null) {
			instance = new AboutListener();
		}
		
		return instance;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		String message = "This program is designed & implemented\n" +
				"by Oguzhan ACARGIL\n" +
				"oguzhanacargil@gmail.com";
		MessageFactory.informationMessage(message);
	}

}
